import AutoImport from 'unplugin-auto-import/vite'

export default function createAutoImport() {
  return AutoImport({
    vueTemplate: true,
    imports: ['vue', 'pinia', 'uni-app'],
    dts: 'src/types/auto-imports.d.ts',
    dirs: [
      'src/stores/modules',
      'src/composables',
      'src/plugins',
      'src/constants',
    ],
  })
}
